#include "Protocols/PacketHeader.h"
#include "Protocols/Protocal.h"
#include "Protocols/ProtocalCode.h"
#include "Protocols/ProtocalPool.h"

DECLARE_PROTOCOLHEADER_BEGIN(POP3Header)
	DECLARE_PROTOCOLHEADER__DEFAULTCONSTRUCTOR(POP3Header)

	QString getSummary() const{
		return byteToString((const char *)mData, "\r\n");
	}
	int getHeaderLength() const{
		return mLength;
	}
	void toShowableItems(ShowableItem* root) const;

	private:
		enum _mType{RESPONSE, REQUEST, DATA};
		_mType typeFlag() const;
		int spaceIndex() const;

DECLARE_PROTOCOLHEADER_END
DECLARE_PROTOCOL_BEGIN(POP3Protocal, POP3Header)
DECLARE_PROTOCOL_END